package com.jic.veteran.controller;

import com.jic.veteran.common.api.CommonResult;
import com.jic.veteran.dto.AlumniExplainParam;
import com.jic.veteran.service.AlumniExplainService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 文章管理controller
 * Created by mars on 2021/11/23.
 */
@RestController
@Api(tags = "AlumniExplainController",description = "修改校友会介绍、章程、使用手册")
@RequestMapping("/upexplain")
public class AlumniExplainController {


    @Autowired
    private AlumniExplainService alumniExplainService;

    @ApiOperation("修改介绍")
    @RequestMapping(value = "/upexplain", method = RequestMethod.POST)
    @ResponseBody
    public CommonResult upExplain(@RequestBody AlumniExplainParam alumniExplainParam) {

        int count = alumniExplainService.insertExplain(alumniExplainParam);
        return CommonResult.success(count);
     }
}
